//
//  PayTypeTableViewCell.m
//  LoveFreshBeen
//
//  Created by 胡不归是大虾 on 2016/10/19.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "PayTypeCell.h"
@interface PayTypeCell( )
@property (weak, nonatomic) IBOutlet UIImageView *img;
@property (weak, nonatomic) IBOutlet UILabel *lable;
@property (weak, nonatomic) IBOutlet UIButton *btn;



@end
@implementation PayTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
-(void)setSelected:(BOOL)selected animated:(BOOL)animated{
    [super setSelected:selected animated:animated];
    self.btn.selected = selected;
}
-(void)setRow:(NSInteger)row{
    _row = row;
    switch (row) {
        case 0:
        {
            self.img.image = [UIImage imageNamed:@"v2_weixin"];
            self.lable.text = @"微信支付";
        }
            break;
        case 1:
        {
            self.img.image = [UIImage imageNamed:@"icon_qq"];
            self.lable.text = @"QQ钱包";
        }
            break;
        case 2:
        {
            self.img.image = [UIImage imageNamed:@"zhifubaoA"];
            self.lable.text = @"支付宝支付";
        }
            break;
        case 3:
        {
            self.img.image = [UIImage imageNamed:@"v2_dao"];
            self.lable.text = @"货到付款";
        }
            break;
        default:
            break;
    }
}

@end
